#include "Stream.h"

using namespace Woo::IO;

Stream::Stream()
{
}

Stream::~Stream()
{
}

void Stream::Copy(Stream* dest)
{
	Byte buffer[4096];
	memset(buffer, 0, 4096);
	UInt32 size = GetLength();
	UInt32 rs = 0;
	while(rs < size)
	{
		UInt32 rc = Read(buffer, 4096);
		dest->Write(buffer, rc);
		rs += rc;
	}
}
